//引入初始化样式文件
import '@/styles/common.scss'
//引入懒加载指令插件并注册
import {lazyPlugin} from '@/directives/index.js'
//引入全局组件插件
import {componentPlugin} from '@/components'
import { createApp } from 'vue'
import { createPinia } from 'pinia'; // 确保正确引入
import { createPersistedState } from 'pinia-plugin-persistedstate';
import App from './App.vue'
import router from './router'




const app = createApp(App)
const pinia = createPinia(); // 使用正确的函数名
//注册持久化插件
pinia.use(createPersistedState())
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.mount('#app')
app.use(componentPlugin)
